package spr.lime.lmAdm.controller.index;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
@RequestMapping("/lmAdm")
public class IndexController {
	
	
	private ApplicationContext context = new ClassPathXmlApplicationContext("/config/applicationContext.xml");
	//private AdmMemberModel hService = (AdmMemberModel) context.getBean("helloService");
	//어떤식으로든 top과 left 가 정해진다
	String ttop,left;
	
	@RequestMapping("/index.do")
	public ModelAndView login(HttpServletRequest request, HttpServletResponse response) {
		ModelAndView mav = new ModelAndView();
		mav.addObject("tilesTitle", "관리자 메인 페이지 입니다");
		mav.setViewName("lmAdm.main.page");
		return mav;
	}
}
